<extend name="./Common/View/Public/form.html" />
<block name="page_title">编辑线下分数</block>
<block name="main">
    <form class="layui-form" method="post" action="rate/imports/update" lay-filter="pageForm">
        <input type="hidden" name="id" value="{$data.id}">
        <input type="hidden" name="project_id" value="{$data.project_id}">
        <input type="hidden" name="norm_id" value="{$data.norm_id}">
        <input type="hidden" name="user_id" value="{$data.user_id}">
        <input type="hidden" name="name" value="{$data.name}">
        <div class="layui-form-item">
            <label class="layui-form-label">评价项目</label>
            <div class="layui-input-block">
                {$project.title}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">评价项目</label>
            <div class="layui-input-block">
                {$norm.title}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">评价用户</label>
            <div class="layui-input-block">
                {$data.name}
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">分数</label>
            <div class="layui-input-block">
                <input type="number" name="score" required lay-verify="required|number" value="{$data.score}"  min="{$norm.min}" max="{$norm.max}" autocomplete="off" class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="pageForm">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</block>